﻿using System;
using System.Collections.Generic;

namespace BLL.Entities.Company
{
  public class BankAccount : BaseBusinessEntity
  {
    public Guid CompanyID { get; set; }
    public string Title { get; set; }
    public string BankName { get; set; }
    public string Branch { get; set; }
    public string Transit { get; set; }
    public string AccountHolder { get; set; }
    public DynamicEnumTypeValue AccountType { get; set; }
    public string AccountNumber { get; set; }
    public ContactInfo Contact { get; set; }
    public AddressInfo BranchAddress { get; set; }
    public Decimal StartingBalance { get; set; }
    public Decimal CurrentBalance { get; set; }
    public int StartingChequeNumber { get; set; }
    public int CurrentChequeNumber { get; set; }

    public IList<BankAccountDeposit> Deposits { get; set; }

    public BankAccount()
    { 
        Contact = ContactInfo.CreateNewInstance<ContactInfo>();
        BranchAddress = AddressInfo.CreateNewInstance<AddressInfo>();
        Deposits = new List<BankAccountDeposit>();
    }
  }
}